﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="bookrecord.aspx.cs" Inherits="EZCRS.HCMS.Web.manage.hotel.bookrecord" %>
<%@ Register Src="../usercontrol/jspage.ascx" TagName="jspage" TagPrefix="uc1" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
      <title></title>
        <link rel='stylesheet' href='../../Style/main.css'/>
      <script src="../../Common/base_grid.js" language="javascript" type="text/javascript"></script>  
    <link rel="stylesheet" type="text/css" media="all" href="../../Common/Calendar/themes/system.css" title="Calendar Theme - system.css" />
    <script type="text/javascript" src="../../Common/Calendar/src/utils.js"></script>
   <script type="text/javascript" src="../../Common/Calendar/src/calendar.js"></script>
   <script type="text/javascript" src="../../Common/Calendar/src/calendar-setup.js"></script>
   <script type="text/javascript" src="../../Common/Calendar/lang/calendar-zh.js"></script>   
 </head>
<body onload="Page_Load('First')">
    <form id="form1" runat="server">
    <div style="text-align: left">
    <table width="100%" cellpadding="1" cellspacing="0" class="title-table">
            <tr class="bttn">
                <td align="left" style="width:80%;">
                    <asp:Label runat="server" ID="LabPresentLocation" Text="<%$ Resources:Site, LabPresentLocation %>"></asp:Label>：
                    <asp:Label runat="server" ID="LabNewsMore" Text="订单管理"></asp:Label>
                    <asp:TextBox ID="txt_sql" runat="server" CssClass="text-line" Width="1px" style="display:none;"></asp:TextBox></td>
               <td align="right"> 
                    <asp:Label ID="lab_new" runat="server"></asp:Label> 
                   <asp:ImageButton   id="ImgReturn"  AlternateText="<%$ Resources:Site, ImgReturn %>" OnClientClick="javascript:history.go(-1);" style="cursor:hand;"  runat="server"  ImageUrl="../../Image/return.gif"></asp:ImageButton>   
                 </td> 
            </tr>
        </table>
    <br />
        <table class="main-table" width="100%" cellpadding="1" cellspacing="1">
            <tr class="line-even">
                <td width="11%" style="width:10%; text-align: right;">
                    常客登录名：</td>
                <td width="19%" style="text-align: left;">
                    &nbsp;<asp:TextBox ID="uname" runat="server" CssClass="text-line" Width="150px"></asp:TextBox></td>
                <td width="17%" style="width:10%; text-align: right;">
                    预订产生时间：</td>
                <td width="32%" style="width:30%; text-align: left;">
                    <input id="bstart" class="text-line" style="width: 66px" type="text" readonly/>&nbsp;<asp:Image
                        ID="Image1" runat="server" ImageAlign="Top" ImageUrl="~/Image/calendar.gif" Style="cursor: hand" />
                    -
                    <input id="bend" class="text-line" style="width: 66px" type="text" readonly/>
              <asp:Image ID="Image2" runat="server" ImageAlign="Top" ImageUrl="~/Image/calendar.gif"
                        Style="cursor: hand" /></td> 
                <td width="21%" style="width: 20%">
                    <asp:DropDownList ID="ordersort" runat="server">
                        
              </asp:DropDownList></td>
            </tr>
            
            <tr class="line-even">
                <td style="text-align: right">
                    订单号：</td>
                <td style="text-align: left;">
                    &nbsp;<asp:TextBox ID="uorder" runat="server" CssClass="text-line" Width="150px"></asp:TextBox></td>
                <td style="text-align: right">
                    入住时间从：</td>
                <td style="text-align: left"><input id="cstart" class="text-line" style="width: 66px" type="text" readonly/>
                    <asp:Image ID="Image3" runat="server" ImageAlign="Top" ImageUrl="~/Image/calendar.gif"
                        Style="cursor: hand" />
                    -
                    <input id="cend" class="text-line" style="width: 66px" type="text" readonly/>
                    <asp:Image ID="Image4" runat="server" ImageAlign="Top" ImageUrl="~/Image/calendar.gif"
                        Style="cursor: hand" /></td> 
                <td style="text-align: left">
                <asp:Button  ID="BtnSearch"  runat="server" CssClass="bttn" OnClientClick="javascript:Page_Load('Search');return false;" Text="<%$ Resources:Site, ButtonSearch %>" />
                </td>
            </tr>
        </table>
    </div><input type="hidden" id="orderkey" value="0" />
    </form>
  <uc1:jspage id="Jspage1" runat="server">
    </uc1:jspage>
   <script type="text/javascript">
    function Page_Load(pageindex)
    {//debugger
        var sstr="";
        sstr+=$F("uname").value+"|";
        sstr+=$F("uorder").value+"|";
        sstr+=$F("bstart").value+"|";
        sstr+=$F("bend").value+"|";
        sstr+=$F("cstart").value+"|";
        sstr+=$F("cend").value+"|";
        sstr+=$F("ordersort").value;
        pageindex=pageIndexSetting(pageindex);    //pageindex的设定
        HUBS1.HCMS.myajax.CardUserLog.BookRecord(pageindex, sstr,$('orderkey').value,setTable);
        pageLastSetting(sstr,pageindex);     //最后的赋值
       
    }
    function setorders(orderstr)
    {
     if($F("orderkey").value==orderstr)
     {
      $F("orderkey").value=orderstr+orderstr;
     }
     else
     {
      $F("orderkey").value=orderstr;
     }
     Page_Load("First");
    }
    
    AjaxPro.timeoutPeriod = 40000;
    var l = $F("loadinfo");
    AjaxPro.onLoading = function(b)
    {
        l.innerHTML="<img src=\"../../Image/loading.gif\" alt=\"Loading\" align=\"absmiddle\" /><%= Resources.Site.LabLoadInfo %>";
    }    
    AjaxPro.onError = function(e) 
    {
        l.innerHTML="<%= Resources.Site.LabLoadErrInfo %>";
    } 
    AjaxPro.onTimeout = function(t) 
    {
        l.innerHTML="<%= Resources.Site.LabLoadErrInfo %>";
    }
    
    var cal = new Zapatec.Calendar.setup({
		
				inputField     :    "bstart",   // id of the input field
				button         :    "Image1",  // What will trigger the popup of the calendar
				ifFormat       :    "%Y-%m-%d ",       //  of the input field
				timeFormat   :    "24",
				showsTime   :     false,          //no time
				electric       :     false
			
		});
		
			Zapatec.Calendar.setup({
				inputField     :    "bend",
				button         :    "Image2",
				ifFormat       :    "%Y-%m-%d ",
				timeFormat   :    "24",
				showsTime   :     false, 
				electric       :     false
			});
			Zapatec.Calendar.setup({
				inputField     :    "cstart",
				button         :    "Image3",
				ifFormat       :    "%Y-%m-%d ",
				timeFormat   :    "24",
				showsTime   :     false, 
				electric       :     false
			});
			Zapatec.Calendar.setup({
				inputField     :    "cend",
				button         :    "Image4",
				ifFormat       :    "%Y-%m-%d ",
				timeFormat   :    "24",
				showsTime   :     false, 
				electric       :     false
			});
   </script> 
   
</body>
</html>



